<div id = "user_details">

    <?php
    @$comp_id = $_GET['id'];
    @$action = $_GET['action'];

    $query = "select * from companies_details where comp_id = ".$comp_id;

    $results = $set->qry($query);

    $row = mysql_fetch_assoc($results);

    echo $row['comp_name'];
   // echo $action;
    ?>

</div>